
package com.fire.web.modules.all.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.fire.web.modules.all.entity.UserAuthorityModel;
import com.fire.web.modules.all.mapper.UserAuthorityMapper;
import com.fire.web.modules.all.service.IUserAuthorityService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * new用户tokenService
 *
 * @author Matthew
 * @Date 2019-01-10 11:31
 */
@Service
public class UserAuthorityServiceImpl extends ServiceImpl<UserAuthorityMapper, UserAuthorityModel> implements IUserAuthorityService {

	private static final Logger LOGGER = LoggerFactory.getLogger(UserAuthorityServiceImpl.class);

	@Autowired
	private UserAuthorityMapper userAuthorityMapper;

	@Override
	public UserAuthorityModel selectOne(UserAuthorityModel entity){
		return userAuthorityMapper.selectOne(entity);
	}

	@Override
	public List<UserAuthorityModel>selectList(UserAuthorityModel model){
		return userAuthorityMapper.selectListByModel(model);
	}

	@Override
	public Page<UserAuthorityModel> selectPage(int currentPage, int pageSize, Wrapper<UserAuthorityModel> wrapper){
		return selectPage(new Page<UserAuthorityModel>(currentPage,pageSize), wrapper);
	}

	@Override
	public Page<Map<String, Object>> selectMapsPage(int currentPage, int pageSize, Wrapper<UserAuthorityModel> wrapper){
		return selectMapsPage(new Page<UserAuthorityModel>(currentPage,pageSize), wrapper);
	}

}
